﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLog;

namespace Com
{
    public class LoggerManager
    {
        private static Logger logger;
        public static void Error(Exception str)
        {
            logger = LogManager.GetCurrentClassLogger();
            logger.Error(str);
        }
        public static void Debug(string str, string className)
        {
            logger = LogManager.GetLogger(className);
            logger.Debug(str);
        }
        public static void Info(string str, string className)
        {
            logger = LogManager.GetLogger(className);
            logger.Info(str);
        }
    }
}
